package com.ruoyi.common;

import java.util.ArrayList;
import java.util.List;

/**
 * 常量类
 */
public class Constant {

    //delivery_status
    public static final String CONDE_SYS_DELIVERY_STATUS = "delivery_status";
    public static final String CONDE_SYS_SHOP_TYPE = "sys_shop_type";
    /**
     * 问题难度数据库id
     * **/
    public static final Long TAG_QUESTION_LEVEL_ID = 2L;
    /**
     * 问题类型数据库id
     * **/
    public static final Long TAG_QUESTION_TYPE_ID = 1L;

    /**
     * 默认文件后缀分割符号,
     */
    public static final String DEFAULT_EXT_SPLIT = ".";

    public static final String DATE_JSON_FORMAT_DAY="yyyy-MM-dd";
    public static final String DATE_JSON_FORMAT="yyyy-MM-dd HH:mm:ss";
    public static final String[] SCHOOL_ROLES = new String[]{"school", "teacher", "classLeader", "student"};
    public static final String REGX_TEL = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$";
    public static final String CODE_KEY_METHOD_TYPE = "method_type";

    public static final String NO_ARGS="缺少参数";
    public static final String SALT = "hrai%s$@";

    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
//    /**
//     * 未提交
//     * **/
//    public static final String CHECK_STATUS_UNSUBMIT= "0";
//    /**
//     * 待审核
//     * **/
//    public static final String CHECK_STATUS_UNCHECK = "1";
//
//    /**
//     * 审核拒绝
//     * **/
//    public static final String CHECK_STATUS_REJECT = "3";
//
//    /**
//     * 审核通过
//     * **/
//    public static final String CHECK_STATUS_PASS = "2";

    public static final String ROLE_KEY_PREFIX = "ROLE_";
    public static final String ROLE_KEY_TEACHER = ROLE_KEY_PREFIX+"teacher";
    public static final String ROLE_KEY_ADMIN= ROLE_KEY_PREFIX+"admin";
    /**
     * 数据删除
     */
    public static final String STATUS_DEL = "0";

    /**
     * 默认分割符号
     */
    public static final String DEFAULT_SPLIT = ",";

    public static final String NET_REQUEST_FAIL = "网络请求错误";
    /**
     * 授权失败,验证码
     **/
    public static final Integer AUTH_FAIL = 402;

    /**
     * 未登录或token失效
     **/
    public static final Integer TOKEN_FAIL = 401;

    /**
     * 程序处理中
     **/
    public static final Integer PROGRESS = 4;


    /**
     * 响应成功 {@value}
     */
    public static final Integer SUCCESS_ = 1;

    /**
     * 全局编码
     **/
    public static final String ENCODING = "UTF-8";
    /**
     * 默认的页面返回条数
     **/
    public static final Integer PAGE_SIZE = 10;
    public static final String STRING_EMPTY = "";
    /**
     * 响应失败 {@value}
     */
    public static final Integer FAIL_ = 0;


    /**
     * 添加数据失败
     */
    public static final String ADD_MESSAGE_FAIL = "添加数据失败";
    /**
     * 添加数据成功
     */
    public static final String ADD_MESSAGE_SUCCESS = "添加数据成功";
    /**
     * 查询数据失败
     */
    public static final String SEARCH_MESSAGE_FAIL = "查询数据失败";
    /**
     * 查询数据成功
     */
    public static final String SEARCH_MESSAGE_SUCCESS = "查询数据成功";
    /**
     * 修改数据失败
     */
    public static final String UPDATE_MESSAGE_FAIL = "更新数据失败";
    /**
     * 修改数据成功
     */
    public static final String UPDATE_MESSAGE_SUCCESS = "更新数据成功";
    /**
     * 删除数据失败
     */
    public static final String DELETE_MESSAGE_FAIL = "删除数据失败";
    /**
     * 删除数据成功
     */
    public static final String DELETE_MESSAGE_SUCCESS = "删除数据成功";

    /**
     * 操作数据成功
     */
    public static final String OPERATE_MESSAGE_SUCCESS = "操作成功";
    /**
     * 操作数据失败
     */
    public static final String OPERATE_MESSAGE_FAIL = "操作失败";

    /**
     * 默认头像
     **/
    public static final String DEFAULT_AVATAR = "human-resources/static/image/default_1.jpg";
    /**
     * 默认海报
     * ***/
    public static final String DEFAULT_POSTER = "human-resources/static/image/default_exam_poster.png";
    public static final List EMPTY_LIST = new ArrayList();
}
